package com.lisa.music.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.Map;

/*@Controller
@RequestMapping("/user")*/
@RestController
@RequestMapping("user")
public class HelloWorldController {
 /*   @RequestMapping("/h")
    @ResponseBody*/
    @GetMapping("/h")
    public Map<String, Object> hello() {
        Map<String, Object> map = new HashMap<>();
        map.put("message", "hello world");
        map.put("id", "1001");
        map.put("username", "lisa");
        map.put("age", "18");

        return map;
    }

}
